<?php
$name 			= $this->formText('data[Category][cat_name]',$this->Item['cat_name'],array('class'=>'txtmedium'));
$order			= $this->formText('data[Category][cat_order]',$this->Item['cat_order'],array('class'=>'txtshort'));
$parents 		= $this->cmsSelect('data[Category][sub_id]',$this->Item['parents'],
    $this->slbCategory,array('size'=>10,'style'=>'min-width: 200px;'));
$arrInput = array(
    array('label'=>'Category name: ', 'input'=>$name),
    array('label'=>'Parents: ', 'input'=>$parents),
    array('label'=>'Order: ', 'input'=>$order),
);
if (count($this->messageError) > 0) {
    $errors = $this->formErrors($this->messageError, array('id' => 'errors'));
}
?>
<form id="appForm" name="appForm" method="post" accept-charset="utf-8">
    <?php echo $this->render('/toolbar/index.php'); ?>
    <div class="clr"></div>
    <?php echo $error ?>
    <div id="element-box">
        <div class="t">
            <div class="t">
                <div class="t"></div>
            </div>
        </div>
        <div class="m">
            <!-- BEGIN: ELEMENT BOX -->
            <div id="adminfieldset">
                <div class="adminheader">Detail</div>
                <?php echo $this->partialLoop('row.php', $arrInput); ?>
            </div>

            <!-- END: ELEMENT BOX -->
            <div class="clr"></div>
        </div>
        <div class="b">
            <div class="b">
                <div class="b"></div>
            </div>
        </div>
    </div>
</form>